﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="form-edit-file-text.ascx.cs" Inherits="Admin_UserControl_form_edit_file_text" %>
<script src="/ckeditor/ckeditor.js"></script>
<script src="/ckeditor/adapters/jquery.js"></script>
<script src="/Scripts/JCommonForm.js"></script>
<h1 class="titlePage">
    <span style="padding: 5px 5px 5px 35px; display: inline-block;">Edit file text</span>
</h1>
<div class="form" style="padding: 10px; width: 98%;">
    <div class="form-row">
        <b>DANH SÁCH CÁC FILE</b>
    </div>
    <div class="form-row">
        <asp:GridView ID="grvLstFile" runat="server" CssClass="table" AutoGenerateColumns="False" OnRowEditing="grvLstFile_RowEditing">
            <Columns>
                <asp:BoundField DataField="FileName" HeaderText="Tên File" />
                <asp:BoundField DataField="Size" HeaderText="Kích thước" />
                <asp:BoundField DataField="Path" HeaderText="Đường dẫn" />
                <asp:BoundField DataField="CreateDate" HeaderText="Ngày Tạo" />
                <asp:TemplateField HeaderText="Action">
                    <ItemTemplate>
                        <asp:Button ID="Button1" runat="server" Text="Sửa" CommandName="Edit"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="form-row">
        <b>FILE ĐANG SỬA: <asp:Label ID="lblFileNameEdit" runat="server" Text="No Name" ForeColor="#CC3300"></asp:Label></b>
    </div>
    <div class="form-row">
        <asp:TextBox ID="txtNoiDung" TextMode="MultiLine" runat="server" Width="520px" MaxLength="250" CssClass="txtNoiDung ckeditor"></asp:TextBox>
    </div>
    <div class="form-row">
        <asp:Button ID="btnSubmit" runat="server" Text="Cập nhật" OnClick="btnSubmit_Click" />
    </div>
</div>
<asp:HiddenField ID="hdLink" runat="server" />
